# To be included by programs using CGF as an external library.

##################third lib
## find QT
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
set(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})

##find opengl 
find_package(OpenGL)

###########################core file
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} 
										${CMAKE_CURRENT_SOURCE_DIR} 
										${OPENGL_INCLUDE_DIR} 
										${CGF_SOURCE_DIR}
										"${CGF_SOURCE_DIR}/TriMesh/include"
									  "${CGF_SOURCE_DIR}/GUI"
									  "${CGF_SOURCE_DIR}/Utils"
										"${CGF_BINARY_DIR}/GUI"
										)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CGF_SOURCE_DIR}/cmake/")

								
find_package(EIGEN3)
if(EIGEN3_FOUND)
include(${EIGEN3_USE_FILE})
else (EIGEN3_FOUND)
massage("error : Eigen is needed")
endif(EIGEN3_FOUND)